
export default class api {
    //条件编译
    // #ifdef   H5
    public static readonly HOST = "/sjsj-ht/default";
    // #endif

    //#ifndef H5
    // @ts-ignore
    public static readonly HOST = "https://trimdata.cn:2000/sjsj-ht/default";
    public static readonly PROJECT_CODE="bmsj";
    // public static readonly HOST = "http://127.0.0.1:8090/sjds-ht/default";
    //#endif

    //用户注册
    public static readonly register = {
        sys: {
            authCode: "QTQX_YHZC",
            cllx: "insert"
        }

    }

    //登录接口
    public static readonly login = {
        sjdx: { dxdm: "SYS_QX_YHXX_MRDL" },
        sys: { cllx: "yhdl" },
    }

    //登出接口
    public static readonly logout = {
        sjdx: {
            dxdm: 'SYS_QX_YHXX_MRDL'
        },
        sys: {
            cllx: 'yhtc'
        }
    }

    //获取权限信息
    public static readonly getCds = {
        sys: {
            authCode: "QTQX_QXXX",
            cllx: "cds"
        },
        yobj: {
            treeModel: 'cds'
        }
    }
    //初始化数据对象
    public static readonly initSjdx = {
        sys: {
            cllx: "dxjcxx"
        }
    }
    //新增数据对象
    public static readonly insertSjdx = {
        sys: {
            cllx: "insert"
        }
    }

    //更新数据对象
    public static readonly updateSjdx = {
        sys: {
            cllx: "update"
        }
    }

    //获取数据对象列表
    public static readonly getSjdxList = {
        sys: {
            cllx: "select"
        }
    }
    //获取系统基础信息
    public static readonly getXtjcxx = {
        sjdx: { dxdm: "SYS_QX_QTQX" },
        sys: { cllx: "xtjcxx" }
    }
    //获取后端版本号
    public static readonly getSysVersion = {
        sys: {
            authCode: "QTQX_ZDGL",
            cllx: "zdObj"
        },
        yobj: {
            dm: "sys.version",
            zdlb: "SYS_COMMON_APPCONFIG"
        }

    }

    //获取字典列表
    public static readonly getDictList = {
        sys: {
            authCode: "QTQX_ZDGL",
            cllx: "zdList",
        },
    }

    //获取字典树
    public static readonly getDictTree = {
        sys: {
            authCode: "QTQX_ZDGL",
            cllx: "zdTree",
        },
    }
    //字典搜索
    public static readonly getDictSearch = {
        sys: {
            authCode: "QTQX_ZDGL",
            cllx: "zdSearch",
            pageCllx: "select"
        }
    }
    //获取指定字典对象
    public static readonly getDictObj = {
        sys: {
            authCode: "QTQX_ZDGL",
            cllx: "zdObj"
        }
    }

    //获取系统列表
    public static readonly getSysList = {
        sjdx: {
            dxdm: "SYS_QX_QTQX",
        },
        sys: {
            cllx: "getTreeCN",
        },
        yobj: {
            treeModel: "cds",
        }
    }

    //更新用户信息
    public static readonly updateUserInfo = {
        sjdx: {
            dxdm: "SYS_QX_YHXX"
        },
        sys:{
            cllx: "update"
        }
    }
}
